function unifile = uniquefiles(name)
% uniquefiles finds the unique datac/acq filename/dates in the current directory
% 

unifile = {};
x=dir(name);
y = [];
j=1;
for i = 1:length(x) % reduce list to those with valid data names and non-directories
   if(x(i).isdir == 0 & length(x(i).name) > 8 & isnumeric(str2num(x(i).name(1:2))) & ...
         ischar(x(i).name(3:5)) & isnumeric(str2num(x(i).name(6:7))))
      y(j).n = x(i).name(1:7);
      j = j + 1;
   end;
end;
uni(1) = 1;
j = 1;
for i = 1:length(y)
   if(isempty(intersect(i, uni))) % if entry has not been tagged
      p = strmatch(y(i).n, {y.n}); % check to see if there are matches
      if(~isempty(p))
         uni(p) = j;	% store the index...
         j = j + 1;
      end;
   end;
end;
uni2 = unique(uni);
unifile = {y(uni2).n};
